import request from "@/api/Http";
//获取热门搜索
export function toGetTopSearch() {
    return request({
        url: '/search/hot',
        method:'get'
        })
}
//获取搜索兼容
export function getToSearchSuggestions(keywords) {
    return request({
        url: '/search/suggest?keywords='+keywords+'&type=mobile',
        method:'get'
    })
}
//获取搜索结果
export function getAccessToSearchResults(keywords,type,limit) { 
    return request({ 
        url: ' /cloudsearch?keywords='+keywords+'&type='+type+'&limit'+limit,
        method:'get',
    })
}